package com.itstyle.seckill.topic.desinger.design_xw.template;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 20:26
 * @Description:
 */
public abstract class AbstractClass {


    public void templateMethod(){

        realMethod();
        method1();
        method2();
    }



    public void realMethod(){
        System.out.println("父类实现的方法");
    }


    public  abstract  void method1();

    public  abstract  void method2();

}
